<div id="home-index">
<p><?php echo $html->link("Trang Chủ »", "/recipes"); ?> Cá Nhân »</p>
<h1>Thay đổi thông tin cá nhân</h1>
<?php echo $ajax->form(array('type' => 'post', 'options' => array( 'model'=>'Account', 'update'=>'home-index', 'before' => 'Element.show("info-loader");Form.disable("info-button");', 'complete' => 'Element.hide("info-loader");Form.enable("info-button");', 'url' => array("controller" => "accounts", "action" => "show/".$session->read("Account.permalink")))));?>
<fieldset>
<ul>
  <legend>Thay đổi thông tin cá nhân</legend>
<li>
  <div class="group">
  <?php if (!empty($name_error_message)) { ?>
  <p class="error"><?php echo $name_error_message; ?></p>
  <?php } ?>
  <?php if (!empty($name_complete_message)) { ?>
  <p class="focus"><?php echo $name_complete_message; ?></p>
  <?php } ?>
  <div>
  <?php echo $form->input("Account.name", array("class" => "text medium", "label" => array("class" => "desc", "text" => "Tên hiển thị <span class=\"req\">*</span>"), "error" => array("wrap" => "p", "class" => "error"))); ?>
  <?php echo $form->input("Account.password_change_name", array("type" => "password", "class" => "password medium", "label" => array("class" => "desc", "text" => "Mật mã hiện tại <span class=\"req\">*</span>"))); ?>
  <?php echo $form->input("Account.action", array("type" => "hidden", "value" => "change_name")); ?>
  <label class="desc"></label>
  <input type="submit" id="info-button" class="button" style="width:100px;" value="Gửi"/>
  <?php echo $html->image("ajax-loader.gif", array("id" => "info-loader", "style" => "display:none;")); ?>
  </div>
  </div>
</li>
</ul>
</fieldset>
<?php echo $form->end(); ?>

<?php echo $ajax->form(array('type' => 'post', 'options' => array( 'model'=>'Account', 'update'=>'home-index', 'before' => 'Element.show("password-loader");Form.disable("password-button");', 'complete' => 'Element.hide("password-loader");Form.enable("password-button");', 'url' => array("controller" => "accounts", "action" => "show/".$session->read("Account.permalink")))));?>
<fieldset>
<ul>
  <legend>Thay đổi mật mã</legend>
<li>
  <div class="group">
  <?php if (!empty($password_error_message)) { ?>
  <p class="error"><?php echo $password_error_message; ?></p>
  <?php } ?>
  <?php if (!empty($password_complete_message)) { ?>
  <p class="focus"><?php echo $password_complete_message; ?></p>
  <?php } ?>
  <div>
  <?php echo $form->input("Account.password", array("type" => "password", "class" => "password medium", "label" => array("class" => "desc", "text" => "Thay đổi mật mã mới <span class=\"req\">*</span>"), "error" => array("wrap" => "p", "class" => "error"))); ?>
  <?php echo $form->input("Account.password_change", array("type" => "password", "class" => "password medium", "label" => array("class" => "desc", "text" => "Mật mã hiện tại <span class=\"req\">*</span>"))); ?>
  <?php echo $form->input("Account.action", array("type" => "hidden", "value" => "change_password")); ?>
  <label class="desc"></label>
  <input type="submit" id="password-button" class="button" style="width:100px;" value="Gửi"/>
  <?php echo $html->image("ajax-loader.gif", array("id" => "password-loader", "style" => "display:none;")); ?>
  </div>
  </div>
</li>
</ul>
</fieldset>
<?php echo $form->end(); ?>
</div>